import { axios } from "./axios"

/* 获取方案列表（solution） */
export const getPlanList = () => {
    return axios({
        url: '/api/getPlanList',
        method: 'get'
    })
}

/* 获取系列列表 */
export const getGroupList = () => {
    return axios({
        url: '/api/getGroupList',
        method: 'get'
    })
}

/* 获取推荐9个产品 */
export const getIndexTopProducts = () => {
    return axios({
        url: '/api/getIndexTopProducts',
        method: 'get'
    })
}

/* 获取方案详情 */
export const getPlanDetail = (data: any) => {
    return axios({
        url: '/api/getPlanDetail',
        data,
        method: 'get'
    })
}

/* 获取产品详情 */
export const getProductsDetail = (data: any) => {
    return axios({
        url: '/api/getProductsDetail',
        data,
        method: 'get'
    })
}

// 获取元件列表
export const getComponentsList = () => {
    return axios({
        url: '/api/getComponentsList',
        method: 'get'
    })
}

// 获取display分类列表
export const getDisplayList = () => {
    return axios({
        url: '/api/getDisplayList',
        method: 'get'
    })
}